package xsxdjc.script
public class MaxOfList{
	public static Closure rule = {_context_ ->
		HashMap _result_ = new HashMap();
		_result_.rname = 'MaxOfList';
		_result_.rpath = 'xsxdjc/script/MaxOfList';
		
		_result_.ret = ({
			if(list)
			{
				def max = list[0]
				list.forEach({max = it>max?it:max})
				//
				return max
			} 
			else{
			    return null
			    
			};
		}).call();
		
		return _result_;
	};
};